﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Kinect;

namespace ISMOT.HCI.KGL
{
    public class JointPosition
    {
        public JointType Joint { get; set; }
        public NullablePoint Position { get; set; }

        public override bool Equals(object obj)
        {
            var otherObject = obj as JointPosition;

            if (otherObject != null)
            {
                return (otherObject.Joint.Equals(this.Joint));
            }

            return base.Equals(obj);
        }

        public override int GetHashCode()
        {
            return (this.Joint.GetHashCode());
        }
    }
}
